package com.zrwl.poscloud.base.enums;

/**
 * 业务类型
 */
public class EBusinessType {
    //测试中数据后续更改
    /**
     * 黑名单_下个序列号_最大位数//此条目弃用
     */
    public static final int blackList = 1;
    public static final String blackListConfigure = "1,6";
    /**
     * 测试错账处理业务_下个序列号_最大位数
     */
    public static final int errorBill = 9;
    public static final String errorBillConfigure = "1,6";
    /**
     * 测试在线充值退款业务_下个序列号_最大位数
     */
    public static final int onLinePayRefund = 10;
    public static final String onLinePayRefundConfigure = "1,8";
    /**
     * 测试在线充值业务_下个序列号_最大位数
     */
    public static final int onLinePay = 11;
    public static final String onLinePayConfigure = "1,8";
    /**
     * 测试消费订单业务_下个序列号_最大位数
     */
    public static final int orderNumber = 12;
    public static final String orderNumberConfigure = "1,11";


    /**
     * 卡号_下个序列号_最大位数
     */
    public static final int cardCode = 13;
    public static final String cardCodeConfigure = "1,8";

    /**
     * 开户业务_下个序列号_最大位数
     */
    public static final int buildAccoount = 16;
    public static final String buildAccoountConfigure = "1,20";
    /**
     * 线下充值业务_下个序列号_最大位数
     */
    public static final int cashRecharge = 14;
    public static final String cashRechargeConfigure = "1,20";
    /**
     * 开卡业务_下个序列号_最大位数
     */
    public static final int openCard = 15;
    public static final String openCardConfigure = "1,20";
    /**
     * 修改卡业务_下个序列号_最大位数
     */
    public static final int editCard = 18;
    public static final String editCardConfigure = "1,20";
    /**
     * 换卡卡业务_下个序列号_最大位数
     */
    public static final int changeCard = 19;
    public static final String changeCardConfigure = "1,20";
    /**
     * 挂失卡业务_下个序列号_最大位数
     */
    public static final int reportLoss = 3;
    public static final String reportLossConfigure = "1,20";
    /**
     * 解挂卡业务_下个序列号_最大位数
     */
    public static final int findLostCard = 5;
    public static final String findLostCardConfigure = "1,20";
    /**
     * 退卡业务_下个序列号_最大位数
     */
    public static final int recoveryCard = 20;
    public static final String recoveryCardConfigure = "1,20";
    /**
     * 在线提现_下个序列号_最大位数
     */
    public static final int onlineRefund = 21;
    public static final String onlineRefundConfigure = "1,20";
    /**
     * 线下提现_下个序列号_最大位数
     */
    public static final int offlineRefund = 24;
    public static final String offlineRefundConfigure = "1,20";
    /**
     * 圈存_下个序列号_最大位数
     */
    public static final int trapping = 22;
    public static final String trappingConfigure = "1,20";
    /**
     * 转账_下个序列号_最大位数
     */
    public static final int transfer = 23;
    public static final String transferConfigure = "1,20";
    /**
     * 注销_下个序列号_最大位数
     */
    public static final int leave = 25;
    public static final String leaveConfigure = "1,20";
    /**
     * 恢复_下个序列号_最大位数
     */
    public static final int restore = 26;
    public static final String restoreConfigure = "1,20";
    /**
     * 限额
     */
    public static final int limit = 27;
    public static final String limitConfigure = "1,20";
    /**
     * 黑白名单_下个序列号_最大位数
     */
    public static final int authList = 2;
    public static final String authListConfigure = "1,6";

    /**
     * 卡变动日志同步_下个序列号_最大位数
     */
    public static final int cardLog = 17;
    public static final String cardLogConfigure = "1,10";

    public static final int userServiceAutoCode = 97;

    /**
     * 人员编号系统生成_下个序列号_最大位数
     */
    public static final int employeeAutoCode = 98;
    public static final String employeeAutoCodeConfigure = "1,10";

    /**
     * 人员账户创建
     */
    public static final int employeeWithAccount = 100;

    /**
     * 表单创建_下个序列号_最大位数
     */
    public static final int formCreate = 99;
    public static final String formCreateConfigure = "1,10";

    /**
     * 产品编号系统生成_下个序列号_最大位数
     */
    public static final int productContentCode = 101;
    public static final String productContentCodeConfigure = "1,10";

    /**
     * 商户编号
     */
    public static final int companyCode = 1;
    public static final String companyCodeConfigure = "1,8";

    /**
     * 代理商编号
     */
    public static final int merchantCode = 44;
    public static final String merchantCodeConfigure = "1,7";

    /**
     * 商户设备编号
     */
    public static final int companyEquipmentCode = 9000;
    public static final String companyEquipmentCodeConfigure = "1,3";

    /**
     * 商户设备编号
     */
    public static final int employeeSyncCode = 9001;
    public static final String employeeSyncCodeConfigure = "1,9";

    /**
     * 在线订餐编号
     */
    public static final int mealOrderSyncCode = 9002;
    public static final String mealOrderSyncCodeConfigure = "1,10";

    /**
     * 扫码订单
     */
    public static final int scanOrderSyncCode = 9003;
    public static final String scanOrderSyncCodeConfigure = "1,10";

    /**
     * 人脸卡编号
     */
    public static final int employeeFaceCardCode = 102;
    public static final String employeeFaceCardCodeConfigure = "1,11";

    public String getConfigure(int type) {
        switch (type) {
            case reportLoss:
                return reportLossConfigure;
            case onLinePayRefund:
                return onLinePayRefundConfigure;
            case onLinePay:
                return onLinePayConfigure;
            case orderNumber:
                return orderNumberConfigure;
            case errorBill:
                return errorBillConfigure;
            case cardCode:
                return cardCodeConfigure;
            case cashRecharge:
                return cashRechargeConfigure;
            case openCard:
                return openCardConfigure;
            case buildAccoount:
                return buildAccoountConfigure;
            case cardLog:
                return cardLogConfigure;
            case editCard:
                return editCardConfigure;
            case changeCard:
                return changeCardConfigure;
            case authList:
                return authListConfigure;
            case recoveryCard:
                return recoveryCardConfigure;
            case onlineRefund:
                return onlineRefundConfigure;
            case formCreate:
                return formCreateConfigure;
            case employeeAutoCode:
                return employeeAutoCodeConfigure;
            case trapping:
                return trappingConfigure;
            case transfer:
                return transferConfigure;
            case offlineRefund:
                return offlineRefundConfigure;
            case leave:
                return leaveConfigure;
            case restore:
                return restoreConfigure;
            case limit:
                return limitConfigure;
            case companyCode:
                return companyCodeConfigure;
            case merchantCode:
                return merchantCodeConfigure;
            case employeeSyncCode:
                return employeeSyncCodeConfigure;
            case mealOrderSyncCode:
                return mealOrderSyncCodeConfigure;
            case employeeFaceCardCode:
                return employeeFaceCardCodeConfigure;
            case scanOrderSyncCode:
                return scanOrderSyncCodeConfigure;
            default:
                return null;
        }
    }
}